package com.fgxia.driver.domain.vo;

import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * driver order info vo
 *
 * @author yyt
 */

@Data
public class DriverOrderVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单状态(初始化|待提货|配送中|待回单|待打款|已完成)，全部运单切换到对应状态订单才切换到对应状态
     */
    private String orderStatus;

    /**
     * 显示状态，如已发货中的部分发货，为空则使用订单状态
     */
    private String displayStatus;

    /**
     * 订单总价
     */
    private BigDecimal orderTotalPrices;

    /**
     * 货物名称
     */
    private String goodsName;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "goods_type", mapper = "goodsName")
    private String goodsNameLabel;

    /**
     * 货物数量(单个)
     */
    private Long goodsNumSingle;

    /**
     * 货物数量(总计)
     */
    private Long goodsNumSum;

    /**
     * 货物数量单位
     */
    private String goodsNumUnit;

    /**
     * 货物重量(吨)(单个)
     */
    private BigDecimal goodsWeightSingle;

    /**
     * 货物重量(吨)(总计)
     */
    private BigDecimal goodsWeightSum;

    /**
     * 货物体积(单个)
     */
    private String goodsVolumeSingle;

    /**
     * 货物体积(总计)
     */
    private BigDecimal goodsVolumeSum;

    /**
     * 用车类型(整车、零担)
     */
    private String carUseType;

    /**
     * 车长
     */
    private Float carLength;

    /**
     * 车型(;分割)
     */
    private String carType;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "car_type", mapper = "carType")
    private Long carTypeLabel;


    /**
     * 预计装货时间(yyyy-mm-dd)
     */
    private String loadTimeDay;

    /**
     * 预计装货时间(hh:mm-hh:mm)
     */
    private String loadTimeHour;

    /**
     * 实际装货时间
     */
    private Date loadingTimeDay;

    /**
     * 预计发货时间(mm-dd)
     */
    private String sendTimeDay;

    /**
     * 预计发货时间(hh:mm-hh:mm)
     */
    private String sendTimeHour;

    /**
     * 实际发货时间
     */
    private Date sendingTimeDay;

    /**
     * 预计到货时间(yyyy-mm-dd)
     */
    private String receiveTimeDay;

    /**
     * 预计到货时间(hh:mm-hh:mm)
     */
    private String receiveTimeHour;

    /**
     * 实际到货时间
     */
    private Date receivingTimeDay;

    /**
     * 寄件人姓名(冗余)
     */
    private String sendName;

    /**
     * 寄件人手机号
     */
    private String sendPhone;

    /**
     * 寄件人公司
     */
    private String sendCompanyName;

    /**
     * 寄件人省
     */
    private Long sendProvince;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "sendProvince")
    private Long sendProvinceLabel;

    /**
     * 寄件人市
     */
    private Long sendCity;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "sendCity")
    private String sendCityLabel;

    /**
     * 寄件人区
     */
    private Long sendDistrict;

    @Translation(type = TransConstant.AREA_ID_TO_NAME)
    private String sendDistrictLabel;

    /**
     * 寄件人地址
     */
    private String sendAddress;

    /**
     * 寄件人经度
     */
    private String sendLongitude;

    /**
     * 寄件人纬度
     */
    private String sendLatitude;

    /**
     * 收件人id
     */
    private Long receiverId;

    /**
     * 收件人姓名(冗余)
     */
    private String receiverName;

    /**
     * 收件人手机号
     */
    private String receiverPhone;

    /**
     * 收件人公司
     */
    private String receiverCompanyName;

    /**
     * 收件人省
     */
    private Long receiverProvince;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "receiverProvince")
    private String receiverProvinceLabel;

    /**
     * 收件人市
     */
    private Long receiverCity;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "receiverCity")
    private String receiverCityLabel;

    /**
     * 收件人区
     */
    private Long receiverDistrict;

    @Translation(type = TransConstant.AREA_ID_TO_NAME, mapper = "receiverDistrict")
    private String receiverDistrictLabel;

    /**
     * 收件人地址
     */
    private String receiverAddress;


    /**
     * 长(米)
     */
    private BigDecimal goodsLong;

    /**
     * 宽(米)
     */
    private BigDecimal goodsWidth;

    /**
     * 高(米)
     */
    private BigDecimal goodsHeight;

    /**
     * 是否紧急
     */
    private String isUrgency;

    /**
     * 是否异常
     */
    private String isAbnormal;

    /**
     * 紧急备注
     */
    private String urgencyRemark;

    /**
     * 异常备注
     */
    private String abnormalRemark;

    /**
     * 账号id(当前订单)
     */
    private Long relevanceUserId;

    /**
     * 单号
     */
    private String code;

    /**
     * 打包方式
     */
    private String packaging;

    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "packing_method", mapper = "packaging")
    private String packagingLabel;

    /**
     * 是否运营方添加
     */
    private String isOperationAdd;

    /**
     * 保险金额(0.00未购买)(付多少)
     */
    private BigDecimal insuredAmount;
}
